
package com.trydofor.a9task.base.code.bean;

import com.trydofor.a9task.base.sys.bean.ActBeanRw;

/**
 * @author : Shi Rongjiu (www.trydofor.com)
 * @date : Nov 18, 2012
 */

public class CodeMainRw extends ActBeanRw implements CodeMain {
    
    private int    id;
    private String codeKey;
    private int    groupId;
    private int    orderBy;
    private int    activity;
    
    public int getActivity() {
        return activity;
    }
    
    public String getCodeKey() {
        return codeKey;
    }
    
    public int getGroupId() {
        return groupId;
    }
    
    public int getId() {
        return id;
    }
    
    public int getOrderBy() {
        return orderBy;
    }
    
    public int hashCode() {
        return id;
    }
    
    public void setActivity(int activity) {
        this.activity = activity;
    }
    
    public void setCodeKey(String codeKey) {
        this.codeKey = codeKey;
    }
    
    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public void setOrderBy(int orderBy) {
        this.orderBy = orderBy;
    }
    
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("id=").append(id);
        sb.append(",codeKey=").append(codeKey);
        sb.append(",groupId=").append(groupId);
        sb.append(",orderBy=").append(orderBy);
        sb.append(",activity=").append(activity);
        return sb.toString();
    }
}
